package com.yanqu.road.entity.activity.busyfarming;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.HashMap;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_u_activity_busy_farming_user_data")
public class BusyFarmingUserData extends DataObject {

    @FieldTypeAnnotation(update = true, desc = "用户ID")
    private long userId;
    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;
    @FieldTypeAnnotation(desc = "果园等级")
    private int homeGrade;

    @FieldTypeAnnotation(desc = "水果积分")
    private long fruitScore;

    @FieldTypeAnnotation(desc = "浇水次数")
    private int wateringTimes;

    @FieldTypeAnnotation(desc = "被浇水次数")
    private int beWateringTimes;

    @FieldTypeAnnotation(desc = "被偷次数")
    private int beStealTimes;

    @FieldTypeAnnotation(desc = "偷取次数")
    private int stealTimes;

    @FieldTypeAnnotation(desc = "土地详情")
    private Map<Integer, BusyFarmingLand> landMap = new HashMap<>();

    @FieldTypeAnnotation(desc = "重置时间")
    private long resetTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public int getHomeGrade() {
        return homeGrade;
    }

    public void setHomeGrade(int homeGrade) {
        if(this.homeGrade != homeGrade) {
            this.homeGrade = homeGrade;
            setUpdateOption();
        }
    }

    public long getFruitScore() {
        return fruitScore;
    }

    public void setFruitScore(long fruitScore) {
        if(this.fruitScore != fruitScore) {
            this.fruitScore = fruitScore;
            setUpdateOption();
        }
    }

    public int getWateringTimes() {
        return wateringTimes;
    }

    public void setWateringTimes(int wateringTimes) {
        if(this.wateringTimes != wateringTimes) {
            this.wateringTimes = wateringTimes;
            setUpdateOption();
        }
    }

    public int getBeWateringTimes() {
        return beWateringTimes;
    }

    public void setBeWateringTimes(int beWateringTimes) {
        if(this.beWateringTimes != beWateringTimes) {
            this.beWateringTimes = beWateringTimes;
            setUpdateOption();
        }
    }

    public int getBeStealTimes() {
        return beStealTimes;
    }

    public void setBeStealTimes(int beStealTimes) {
        if(this.beStealTimes != beStealTimes) {
            this.beStealTimes = beStealTimes;
            setUpdateOption();
        }
    }

    public int getStealTimes() {
        return stealTimes;
    }

    public void setStealTimes(int stealTimes) {
        if(this.stealTimes != stealTimes) {
            this.stealTimes = stealTimes;
            setUpdateOption();
        }
    }

    public Map<Integer, BusyFarmingLand> getLandMap() {
        return landMap;
    }

    public void setLandMap(Map<Integer, BusyFarmingLand> landMap) {
        this.landMap = landMap;
    }

    public long getResetTime() {
        return resetTime;
    }

    public void setResetTime(long resetTime) {
        if(this.resetTime != resetTime) {
            this.resetTime = resetTime;
            setUpdateOption();
        }
    }
}
